package com.ztesoft.web.common.db.dao.mapper;

import com.ztesoft.web.common.db.arg.DmDbspaceArg;
import com.ztesoft.web.common.db.po.DmDbspacePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface IDmDbspaceMapper {
    
    List<Integer> countByArg(DmDbspaceArg arg);

    List<DmDbspacePO> selectByArg(DmDbspaceArg arg);

    DmDbspacePO selectByPrimaryKey(String id);

    List<DmDbspacePO> selectByArgAndPage(DmDbspaceArg arg, RowBounds rowBound);

    int insert(DmDbspacePO record);

    int insertSelective(DmDbspacePO record);

    int insertBatch(@Param("list") List<DmDbspacePO> records);

    int updateByArgSelective(@Param("record") DmDbspacePO record,
            @Param("arg") DmDbspaceArg arg);

    int updateByArg(@Param("record") DmDbspacePO record,
            @Param("arg") DmDbspaceArg arg);

    int updateByPrimaryKeySelective(DmDbspacePO record);

    int updateByPrimaryKey(DmDbspacePO record);
    
    int deleteByArg(DmDbspaceArg arg);
    
    int deleteByPrimaryKey(String id);
    
}